<template>
    <div class="fdx-panel">
        <h3 class="panel-header" v-if="showHeader">
            <div v-if="title" v-html="title"></div>
            <div v-else>
                <slot name="header"></slot>
            </div>
        </h3>
        <div class="panel-body">
            <slot name="body"></slot>
        </div>
    </div>
</template>

<script>
export default {
    props: {
        type: {
            type: String,
            default: ''
        },
        showHeader: {
            type: Boolean,
            default: true
        },
        title: ''
    }
}
</script>

<style  lang="scss">
@import '../../assets/sass/_vars';
.fdx-panel {
    position: relative;
    background-color: #fff;
    padding: 10px 0px 10px;
    margin-top: 10px;
    // box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.1);
    // &:after {
    //     content: '';
    //     position: absolute;
    //     top: 0;
    //     right: 0;
    //     border-style: solid;
    //     border-width: 12px;
    //     border-color: #f0f0f0 #f0f0f0 #e8e8e8 #e8e8e8;
    // }
    .panel-header {
        color: #373737;
        font-size: 18px;
        padding-bottom: 10px;
        text-align: left;
    }
    .panel-body + .panel-body {
        padding-top: 5px;
    }

    .img-fluid {
        width: 100%;
        max-height: 200px;
    }

    dd {
        font-size: 12px;
        color: $gray;
        margin-bottom: 5px;
        line-height: 24px;
    }

    dt {
        &:not(:first-child) {
            margin-top: 18px;
        }

        &.dt-gap {
            margin: 10px 0;
        }
    }

    .col-2 {
        overflow: hidden;
        li {
            float: left;
            width: 50%;
            line-height: 24px;
            &:nth-child(2n) {
                padding-left: 20px;
            }
        }
    }
}
// .fdx-panel + .fdx-panel {
//     margin-top: 10px;
// }
</style>